import request from '@/utils/request'

// 查询检查记录填报列表
export function listCheckAnswer(query) {
  return request({
    url: '/patrol/checkAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询检查记录填报详细
export function getCheckAnswer(id) {
  return request({
    url: '/patrol/checkAnswer/' + id,
    method: 'get'
  })
}

// 新增检查记录填报
export function addCheckAnswer(data) {
  return request({
    url: '/patrol/checkAnswer',
    method: 'post',
    data: data
  })
}

// 修改检查记录填报
export function updateCheckAnswer(data) {
  return request({
    url: '/patrol/checkAnswer',
    method: 'put',
    data: data
  })
}

// 删除检查记录填报
export function delCheckAnswer(id) {
  return request({
    url: '/patrol/checkAnswer/' + id,
    method: 'delete'
  })
}

// 导出检查记录填报
export function exportCheckAnswer(query) {
  return request({
    url: '/patrol/checkAnswer/export',
    method: 'get',
    params: query
  })
}